﻿using Ext.Net.MVC;
using System;
using Sharp.Portal;
using Sharp.Portal.ExtNet;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;
using Alignment = Ext.Net.Alignment;
using Column = Ext.Net.MVC.ColumnAttribute;
using DateColumn = Ext.Net.MVC.DateColumnAttribute;
using NumberColumn = Ext.Net.MVC.NumberColumnAttribute;
namespace Sharp.WebBooter.Areas.Platform.Models
{
    /// <summary>
    /// 组
    /// </summary>
    [Sharp.Portal.Title("工作组管理")]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler(ModuleOP.Refresh, "刷新", 4)]
    public partial class GroupIndexModel
    {

        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [Column(Text = "Id", Hidden = true)]
        public int Id { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [Column(Text = "编码")]
        public string Code { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Column(Width = 150, Text = "标题", Locked = true), QueryOption(Option = QueryFeature.DefualtQuery)]
        public string Title { get; set; }
        /// <summary>
        /// 成员数
        /// </summary>
        [NumberColumn(Width = 100, Text = "成员数", Align = Alignment.Right, Format = "0", Sortable = false), QueryOption(Option = QueryFeature.NoneQuery)]
        public int MemberCount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Width = 300, Text = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 录入时间
        /// </summary>
        [DateColumn(Width = 144, Text = "录入时间", Format = "yyyy-MM-dd HH:mm:ss")]
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [DateColumn(Width = 144, Text = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")]
        public DateTime? ModifiTime { get; set; }




    }
    public partial class GroupIndexModel : ExtSharpList
    {
        public GroupIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;
            this.IsUseOrgTreeLayout = true;
        }

    }
}